package com.hl.sfzy.service.impl;

import com.hl.sfzy.entity.Consultants;
import com.hl.sfzy.mapper.ConsultantsMapper;
import com.hl.sfzy.service.ConsultantsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConsultantsServiceImpl implements ConsultantsService {
    @Autowired
    private ConsultantsMapper consultantsMapper;
    @Override
    public int deleteById(Long id) {
        return consultantsMapper.deleteById(id);
    }

    @Override
    public int insert(Consultants record) {
        return consultantsMapper.insert(record);
    }

    @Override
    public int insertSelective(Consultants record) {
        return consultantsMapper.insertSelective(record);
    }

    @Override
    public Consultants selectById(Long id) {
        System.out.println(consultantsMapper.selectById(id));
        return consultantsMapper.selectById(id);
    }

    @Override
    public int updateByIdSelective(Consultants record) {
        return consultantsMapper.updateByIdSelective(record);
    }

    @Override
    public int updateById(Consultants record) {
        return consultantsMapper.updateById(record);
    }

    @Override
    public List<Consultants> selectAll() {
        return consultantsMapper.selectAll();
    }

    @Override
    public List<Consultants> selectBySelective(Consultants record) {
        return consultantsMapper.selectBySelective(record);
    }

    @Override
    public List<Consultants> findByLevel(String level) {
        return consultantsMapper.selectByLevel(level);
    }
}
